<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.js"></script>
</head>
<body>
  <h3>jsonp例子</h3>
  <script>
    function getname(json){
      console.log(json)
    }
  </script>
  <script src="http://localhost:3000?callback=getname"></script>
   <!-- 以上这一句相当于 getname({name:"joven",age:30}) -->
  <script>
    // axios.get('http://localhost:3000/')
  </script>
</body>
</html>